package cn.zwx.member.svc.rpc.dto;

import lombok.Data;
import org.apache.dubbo.apidocs.annotations.RequestParam;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author zhangwenxue
 */
@Data
public class ModifyUserDTO {

    @NotBlank(message = "用户id不能为空")
    @RequestParam(value = "用户id",description = "用户id",required = true)
    private String userId;
    /**
     * 用户名称
     */
    @RequestParam(value = "用户名称",description = "用户名称")
    @Length(max = 32,message = "用户名称不能超过32位")
    private String username;

    /**
     * 用户头像
     */
    @RequestParam(value = "用户头像",description = "用户头像")
    @Length(max = 256,message = "用户头像不能超过32位")
    private String userIcon;

    /**
     * 状态 1-正常 2-冻结 3-拉黑
     */
    @RequestParam(value = "状态 1-正常 2-冻结 3-拉黑",description = "状态 1-正常 2-冻结 3-拉黑")
    private Integer status;

    /**
     * 生日
     */
    @RequestParam(value = "生日",description = "生日")
    @Length(max = 32,message = "生日不能超过32位")
    private String birthday;

    /**
     * 性别 1-男 2-女
     */
    @RequestParam(value = "性别 1-男 2-女",description = "性别 1-男 2-女")
    private Integer sex;

    /**
     * 邮箱
     */
    @RequestParam(value = "邮箱",description = "email")
    @Length(max = 32,message = "邮箱地址不能超过32位")
    private String email;
}
